package com.yamanyar.weebill.view;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;

import com.yamanyar.weebill.domain.ActionPath;
import com.yamanyar.weebill.service.ActionPathService;

/**
 * Lists ActionPaths. Created in Jun 28, 2008.
 * 
 * @author Kaan Yamanyar
 */
@org.springframework.stereotype.Component("listActionPath")
@Scope("request")
public class ListActionPaths implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3156916209497186641L;
	private List<ActionPath> actionPaths;
	private ActionPathService actionPathService;

	@Autowired
	public ListActionPaths(ActionPathService actionPathService) {
		this.actionPathService = actionPathService;
		actionPaths = this.actionPathService.findAll();
	}

	public List<ActionPath> getActionPaths() {
		return actionPaths;
	}

	public void setActionPaths(List<ActionPath> actionPaths) {
		this.actionPaths = actionPaths;
	}

}
